{extend name="public:_base" /}
{block name="main"}

<div class="page-container">
    <form class="mb-20" method="get" action="{:\\think\\Url::build($Request.action)}">
        <input type="text" class="input-text" style="width:250px" placeholder="用户名" name="name" value="{$Request.param.name}">
        <input type="text" class="input-text" style="width:250px" placeholder="控制器" name="controller" value="{$Request.param.controller}">
        <input type="text" class="input-text" style="width:250px" placeholder="方法" name="action" value="{$Request.param.action}">
        <button type="submit" class="btn radius btn-success"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
    </form>
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="r pt-5 pr-5">
                        共有数据 ：<strong>{$num}</strong> 条
        </span>
    </div>
    <table class="layui-table">
        <thead>
        <tr class="text-c">
            <th width="80">用户</th>
            <th width="60">请求方式</th>
            <th width="80">模块</th>
            <th width="200">节点图</th>
            <th width="150">{:sort_by('时间','create_at')}</th>
            <th width="50">操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr class="text-c">
            <td>{$vo.name}</td>
            <td>{$vo.method}</td>
            <td>{$vo.module}</td>
            <td>{$vo.controller}/{$vo.action}</td>
            <td>{$vo.create_at|date='Y-m-d H:i:s',###}</td>
            <td>
                <a href="javascript:;" class="btn radius btn-xs btn-success" onclick="edit('操作记录详情','{:\\think\\Url::build(\'detail\', [\'id\'=>$vo[\'id\']])}')">详情</a>
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    {$list->render()}

</div>
{/block}